package com.example.tests;

import com.example.framework.HelperManager;
import com.example.framework.User;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class Sample {

    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.load(new FileReader(new File("application.properties")));
        HelperManager manager = new HelperManager(properties);
        User user = new User().setLogin("user2").setEmail("user2@localhost").setPassword("000000");
        System.out.println(manager.getHibernateHelper().deleteUser(user));
    }
}
